package com.wjyf.reducing_bento;

import com.google.common.util.concurrent.RateLimiter;
import lombok.extern.log4j.Log4j2;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

@SpringBootApplication
@EnableScheduling
@MapperScan("com.wjyf.reducing_bento.mapper")
@EntityScan("com.wjyf.reducing_bento.entity")
@EnableSwagger2WebMvc//2.0.8及以上
@EnableTransactionManagement
@Log4j2
public class ReducingBentoApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReducingBentoApplication.class, args);
        log.info("project running.......");
    }


}
